#ifndef GRANDSONCLASS_H
#define GRANDSONCLASS_H
#include "SonClass.h"

class GrandsonClass: public SonClass //孙类继承子类
{
public:
    GrandsonClass();
    GrandsonClass(const GrandsonClass& g); //拷贝构造函数
    GrandsonClass& operator = (const  GrandsonClass& g); //赋值构造函数
    virtual void func() override;
    virtual ~GrandsonClass() override;  //虚析构函数的多态性
};

#endif // GRANDSONCLASS_H
